<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<script>
  /*var arr1 = [1,2,3,11,22,33];
  var arr2  =[4,5,6];

  var arr3 = arr1.concat(arr2);
  var arr4 = arr1.concat();
  var arr5 = arr1.concat("c1",[11,22]);
  console.info(arr3);
  console.info(arr4);
  console.info(arr5);

  var s1 = arr1.slice(1);
  console.info(s1);
  var s2 = arr1.slice(1,3);
  console.info(s2);
*/

  var isEvent = function(x){
    console.info(x);
    return (x % 2 ==0)?true:false;
  }

  var numbers = [1,2,3,4,5,6,7,8,9,10];

  //numbers.every(isEvent);
  //numbers.some(isEvent);

 // numbers.forEach(isEvent);

  //var maps = numbers.map(isEvent);
  //console.info(maps);

 // var f = numbers.filter(isEvent);
 // console.info(f);



  function comp(v1,v2){
      if(v1 < v2)
        return 1;
      else if(v1 > v2)
        return -1;
      else
        return 0;
  }
  var o1 = [1,3,2];
  //console.info(o1.reverse())

  //console.info(o1.sort())

  //console.info(o1.sort(comp));


    console.info(numbers.indexOf(5));
    console.info(numbers.lastIndexOf(8))

    console.info(numbers.toString())
    console.info(numbers.join("_"))
</script>
<body>

</body>
</html>